package com.jjy.tools.validation.impl;

import com.alibaba.fastjson.JSONObject;
import com.jjy.tools.JsonUtil;
import com.jjy.tools.validation.ErrorMessage;
import org.springframework.beans.factory.annotation.Autowired;

public class RegisterErrorMessage implements ErrorMessage {

    private JsonUtil jsonUtil;

    public RegisterErrorMessage(){
        jsonUtil = new JsonUtil();
    }

    @Override
    public void putErrorMessageToJson(String key , String value) {
        jsonUtil.json.put(key , value);
    }

    public JsonUtil getJsonUtil() {
        return jsonUtil;
    }

    public void setJsonUtil(JsonUtil jsonUtil) {
        this.jsonUtil = jsonUtil;
    }
}
